package com.xquant.pricing.pricingConfig.mapper;

import org.springframework.stereotype.Repository;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * @Auther: B946
 * @Date: 12/03/2020 09:11
 * @Description:
 */
@Repository
public interface EngineConfigMapper {

    List<Map<String,Object>> queryEngineConfig(Map<String,Object> params) throws SQLException;

    /**
     * 新增时专属校验方法
     * @param params
     * @return
     * @throws SQLException
     */
    List<Map<String,Object>> checkEngineConfig(Map<String,Object> params) throws SQLException;


    void saveConfig(Map<String, Object> params) throws SQLException;

    void updateConfig(Map<String, Object> params) throws SQLException;

    void deleteConfigs(Map<String, Object> params) throws SQLException;

    int queryContractCfgCountByPPCode(String accId) throws SQLException;
}
